package jtk.project4.fleet.field;

import jtk.project4.fleet.domain.Employee;
import jtk.project4.fleet.domain.Equipment;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;

public class SpecificationsEngineTransmission extends GroupControl<Equipment>{
	private TextField EngineSizeField;
	private NumberField CylindersField;
	private ComboField TransmissionTypeField ;
	private TextField FuelTypeField;
	
public SpecificationsEngineTransmission(String bindID){
		setTitle("header.Specifications");
		setBindID(bindID);
		createFields();
		createLayout();
}

private void createFields(){
	EngineSizeField = new TextField("Engine Size", 15);
	CylindersField = new NumberField("#Cylinders", 15);
	CylindersField.setRequired(true);
	TransmissionTypeField = new ComboField<String>("automatic","Manual");
	FuelTypeField = new TextField("Height", 15);
}

private void createLayout() {
	// TODO Auto-generated method stub
	setLayout(new FormLayout())

	.addLabel("label.Weight")			.addField(EngineSizeField)
	.addRow()
	.addLabel("label.Lenght")			.addField(CylindersField)
	.addRow()
	.addLabel("label.Widht")			.addField(TransmissionTypeField)
	.addRow()
	.addLabel("label.Wheelbase")		.addField(FuelTypeField)
	;	
}
}
